import cv2

"""
    HSV
        H - 色调(主波长)
        S - 饱和度(纯度/颜色的影音)
        V值 (强度)
"""

def show_img(name, img):
    cv2.imshow(name, img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

cloud = cv2.imread('cloud.jpg')
print('cloud is shape:', cloud.shape)
cloud_hsv = cv2.cvtColor(cloud, cv2.COLOR_BGR2HSV)
print('cloud_gary is shape:', cloud_hsv.shape)

show_img('cloud', cloud)
show_img('cloud_gary', cloud_hsv)